package com.health.healthSys.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 资讯管理对象 health_info
 *
 * @author maple
 * @date 2025-03-01
 */
public class HealthInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资讯ID */
    private String infoId;

    /** 资讯标题 */
    @Excel(name = "资讯标题")
    private String title;

    /** 资讯内容 */
    @Excel(name = "资讯内容")
    private String content;

    /** 封面图 */
    @Excel(name = "封面图")
    private String coverImg;

    /** 资讯类型 */
    @Excel(name = "资讯类型")
    private String infoType;

    /** 分类 */
    @Excel(name = "分类")
    private String categoryId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 作者昵称（非数据库字段） */
    private String nickName;

    /** 作者用户名（非数据库字段） */
    private String userName;
    private String avatar;

    public String getAvatar() {
        return avatar;
    }
    
    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Excel(name = "部门id")
    private Long deptId;

    public Long getDeptId() {
        return deptId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    /** 发布状态 */
    @Excel(name = "发布状态")
    private String status;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    public void setInfoId(String infoId)
    {
        this.infoId = infoId;
    }

    public String getInfoId()
    {
        return infoId;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setCoverImg(String coverImg)
    {
        this.coverImg = coverImg;
    }

    public String getCoverImg()
    {
        return coverImg;
    }
    public void setInfoType(String infoType)
    {
        this.infoType = infoType;
    }

    public String getInfoType()
    {
        return infoType;
    }
    public void setCategoryId(String categoryId)
    {
        this.categoryId = categoryId;
    }

    public String getCategoryId()
    {
        return categoryId;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setPublishTime(Date publishTime)
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime()
    {
        return publishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("infoId", getInfoId())
                .append("title", getTitle())
                .append("content", getContent())
                .append("coverImg", getCoverImg())
                .append("infoType", getInfoType())
                .append("categoryId", getCategoryId())
                .append("status", getStatus())
                .append("publishTime", getPublishTime())
                .append("remark", getRemark())
                .toString();
    }

}
